package com.qipay.admin.home.controller;

import com.qipay.admin.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class HomeController extends BaseController {


    @RequestMapping(value = {"","/", "/index.jsp", "/index","/list"}, method = RequestMethod.GET)
    public ModelAndView index() {

        return createModelAndView("index");
    }

    @RequestMapping(value = {"/error/403"}, method = RequestMethod.GET)
    public ModelAndView error403() {

        return createModelAndView("error/403");
    }

    @RequestMapping(value = {"/error/404"}, method = RequestMethod.GET)
    public ModelAndView error404() {

        return createModelAndView("error/404");
    }

    @RequestMapping(value = {"/error/500"}, method = RequestMethod.GET)
    public ModelAndView error500() {

        return createModelAndView("error/500");
    }
}
